﻿function LoanCalculatorUI(obj) {
    

    this.notify = function (title, data, image, sticky, duration, class_name) {
        image = typeof image !== 'undefined' ? image : 'img/avatar-mini.jpg';
        sticky = typeof sticky !== 'undefined' ? sticky : true;
        duration = typeof duration !== 'undefined' ? duration : '';
        class_name = typeof class_name !== 'undefined' ? class_name : 'my-sticky-class';

        $.gritter.add({
            // (string | mandatory) the heading of the notification
            title: title,
            // (string | mandatory) the text inside the notification
            text: data,
            // (string | optional) the image to display on the left
            image: image,
            // (bool | optional) if you want it to fade out on its own or just sit there
            sticky: sticky,
            // (int | optional) the time you want it to be alive for before fading out
            time: duration,
            // (string | optional) the class name you want to apply to that specific message
            class_name: class_name
        });
    };
    
}